| Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Shaul Amaninatis
Gallente Federal Navy Academy
|
Posted - 2010.06.12 18:00:00 -
[1]
Hello Amida Ta,
I started to build an invention calculator based on EveAI. Thank you for that lovely libraries.
The learning curve was steep so far But now I found a cliff I can not climb over. How can I find all variations of certain ProductType? Background: I want to obtain a list of Meta Items (0 - 4) from EveAI's list of ProductTypes.
And also: How much ISK would it cost to convince you of adding the meta information for Decryptors to your static data dump? I refer to Probability Multiplier, Max Run Modifier, ME Modifier and PE Modifier.
Thanks
|

Shaul Amaninatis
Gallente Federal Navy Academy
|
Posted - 2010.06.13 20:03:00 -
[2]
Hm,
the test tool works just like you describe, but the EveApiCore in my project neither contains AttributeTypes nor Schematics (I use simple mode).
Also when I check the informations of the DLLs with the file explorer, the EveAI.Live.dll still has version 1.3.0.0.
Is there still an older version of the DLL in the ZIP file?
|

Shaul Amaninatis
Gallente Federal Navy Academy
|
Posted - 2010.06.13 20:30:00 -
[3]
Edited by: Shaul Amaninatis on 14/06/2010 17:48:11 Thanks for the quick answer.
I have setup a brand new test project and there it works just like you describe.
So now I have to find out what is wrong with my existing project. It probably still uses the old DLLs although I have recreated all References and deleted every old version of EveAI... There must still be some kind of caching...
Edit: Now it works and I'm a happy customer \o/
|

Shaul Amaninatis
Gallente Federal Navy Academy
|
Posted - 2010.06.27 16:23:00 -
[4]
Hello AmidaTa,
I was fideling around with copy time calculations when I found the following:
- In the static data the ResearchCopyTime of the 125mm Gatling AutoCannon I Blueprint is set to 03:20:00.
- But when I lookup the Blueprint in Eve it tells me: 06:40:00
I checked several Blueprints and all had just half of the ResearchCopyTime as ingame.
What is the explanation for this behaviour? Am I missing something with the Copy Time calculation formula? Or is this a nasty little bug?
Thank you.
|

Shaul Amaninatis
Gallente Federal Navy Academy
|
Posted - 2010.06.29 19:50:00 -
[5]
Edited by: Shaul Amaninatis on 29/06/2010 19:57:33 Edited by: Shaul Amaninatis on 29/06/2010 19:51:43
Originally by: Amida Ta
This is the data as it is available in the static data dump. Note that this is the amount of time taken to copy a number of runs equal to half the maxProductionLimit, whether as multiple runs on one copy or as one run each on multiple copies. It might be clearrer to not use the data-dump value but show the ingame one. However I fear that some apps might break as they were already aware of the situation.
That clears things up pretty much. As a "solution" I wrote myself an extension method for the BlueprintType class: /// <summary> /// Returns the research time needed for the specified Activity. /// </summary> /// <param name="Blueprint">The BlueprintType that holds the research time values</param> /// <param name="ResearchActivity">The research activity whose research time has to be returned.</param> /// <returns>The desired research time or zero seconds.</returns> public static TimeSpan GetResearchTimePerRun(this BlueprintType Blueprint, Activity ResearchActivity) { TimeSpan researchTime = new TimeSpan(0);
if (Blueprint.MaxProductionLimit > 0) { switch (ResearchActivity) { case Activity.Copying: researchTime = TimeSpan.FromSeconds(Blueprint.ResearchCopyTime.TotalSeconds * 2 / Blueprint.MaxProductionLimit); break; case Activity.ResearchMaterialProductivity: researchTime = TimeSpan.FromSeconds(Blueprint.ResearchMaterialTime.TotalSeconds * 2 / Blueprint.MaxProductionLimit); break; case Activity.ResearchTimeProductivity: researchTime = TimeSpan.FromSeconds(Blueprint.ResearchProductivityTime.TotalSeconds * 2 / Blueprint.MaxProductionLimit); break; case Activity.ResearchTechnology: researchTime = TimeSpan.FromSeconds(Blueprint.ResearchTechTime.TotalSeconds); break; } }
return researchTime; }
Maybe you could add this kind of function to the BlueprintType class of EveAI.
Edit: Oh snap, I wish I knew how to enforce the intendation of the code. But my powers couldn't overcome the forum editor's foobarness. Edit2: Code fix
|
| |
|